package club.janna.jrpc.remoting;

import club.janna.jrpc.rpc.RPCInvocation;
import club.janna.jrpc.rpc.RPCResponse;

import java.util.concurrent.Future;

/**
 * @author Panbo.Guo
 */
public interface ClientHandler extends Handler {

    /**
     * 注册请求
     * @param invocation
     * @return
     */
    Future<RPCResponse<?>> register(RPCInvocation invocation);
}
